package arrays;

import java.util.Arrays;

public class arrays_16 {

    public static void main( String[] args ) {

        int [] intArrays = new int[7] ;
        int random;
        for (int i = 0; i < 7; i++) {
            random = (int)(33*Math.random() + 1) ;
            for (int j = 0; j < i ; j++) {
                if (intArrays[j] == random) {
                    random = (int) Math.random() * 7 + 1;
                    j = 0;
                }
            }
            intArrays[i] = random ;

        }
        System.out.println( Arrays.toString(intArrays) );
    }

}

